#include <stdio.h>
#include <string.h>

void tongji(char *str) {
    int zimu, shuzi, qita;
    int i;
    zimu = shuzi=qita=0;
    for (i=0; i<strlen(str); ++i) {
        if (str[i] >= '0' && str[i] <= '9') {
            shuzi++;
        }
        else if (str[i] >= 'a' && str[i] <= 'z') {
            zimu++;
        }
        else {
            qita++;
        }
    }
    printf("zimu=%d,shuzi=%d,qita=%d", zimu, shuzi, qita);
}

int main(void) {
    char str[200];
    gets(str);
    tongji(str);    
    return 0;
}